****To graph usage 

clear
*use "/Users/beatrizmagaloni-kerpel/Box/Brasil Gustavo/Proyecto Camaras/2020 Analisis Encuesta/grafica_usage.dta"
use "grafica_usage.dta", clear


label define var3 1."Dec" 2."Jan" 3."Feb" 4. "Mar" 5. "Apr" 6. "May" 7."Jun" 8."Jul" 9."Aug" 10."Sep" 11. "Oct"  12. "Nov"
label values var3 var3

	#delimit ;
twoway (connected var2 var3, sort msize(tiny) msymbol(circle) mcolor(blue*1.6%90) lcolor(blue*1.6%90)) 
,
ylabel(, labsize(small))
ytitle("Percentage of assigned cameras", size(small))
xtitle(Month, size(small))
xlabel(1(1)12, labsize(small) angle(vertical))


xline(5, lwidth(thin) lpattern(long dash) lcolor(red))
xline(6, lwidth(medium) lpattern(dash) lcolor(black))
xline(8, lwidth(thin) lpattern(solid) lcolor(black))
xline(9, lwidth(thick) lpattern(dot) lcolor(green))

legend(rows(1) order(1 "Total") size(small) rowgap(zero))
graphregion(fcolor(white) lcolor(none) ifcolor(none) ilcolor(none))
plotregion(fcolor(white) ifcolor(none))
;

#delimit cr
